package com.hqyj.am.pojo;

import com.baomidou.mybatisplus.annotation.IdType;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author rock
<<<<<<< HEAD
 * @since 2022-08-17
=======
 * @since 2022-08-18
>>>>>>> origin/dev
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 编号
     */
    private String userNum;

    private String userName;

    private String userPwd;

    private String phone;

    private String email;

    private Integer departmentId;

    @TableField(exist = false)
    private String department;

    private String salt;

    @TableField(exist = false)
    private List<Role> roles1;

    @TableField(exist = false)
    private List<Department> departments;

    @TableField(exist = false)
    private String roles;

    private String sex;

    private Integer roleId;

    @TableField(exist = false)
    private String code;

}
